#ifndef CASKSTOPCONTROL_H
#define CASKSTOPCONTROL_H

#include <QObject>
#include <QWidget>
#include <QPushButton>
#include <QLineEdit>
#include <QLabel>
#include <QGridLayout>
#include <QGroupBox>
#include <QJsonObject>
#include <QDebug>
#include <QRadioButton>
#include <QJsonArray>

#include "cnp.hpp"

class CaskStopControl : public QWidget
{
    Q_OBJECT
public:
    explicit CaskStopControl(QWidget *parent = nullptr);
    explicit CaskStopControl(const QString &jointName, const QJsonObject &functionDetails, QWidget *parent = nullptr);
    void createCaskStopControl(QGroupBox *groupBox, const QJsonObject &functionDetails);
    ~CaskStopControl();
private slots:
    void onStopHingeClicked();
    void onStopShuttleClicked();
    void onLockClicked();
signals:

private:
    CNPClient *mCaskStopNode;
    CnpMsg mCaskStopMsg;
    void pubCaskStop(QString content);

};

#endif // CASKSTOPCONTROL_H
